import instance from "@/utils/request";

// 获取学生列表
export const getStudentList = (studentSearch) => instance.post('/students/list', studentSearch)

// 添加或修改学生信息
export const saveOrUpdateStudentInfo = (studentForm) => instance.post('/students/saveOrUpdate', studentForm)

//根据学生id查询学生信息
export const getStudentById = (studentId) => instance.get('/students/getById/'+studentId)

//deleteById 根据学生id删除学生信息
export const deleteById  = (studentId) => instance.delete('/students/deleteById/'+studentId)


// 批量导入   batchImport
export const batchImport = (formData)=>instance.post('/students/batchImport',formData)

// 导出数据  batchExport
export const batchExport = (queryParam)=>instance.get('/students/excel',{params:queryParam,responseType:"arraybuffer"})



